package utils

import (
	"github.com/blinkbean/dingtalk"
	"os"
	"strings"
)

var token = os.Getenv("DING_TOKEN")
const key = `.`

var dingTalk = dingtalk.InitDingTalk([]string{token}, key)

func DingTalkSendMsg(title string, msgs ...string) {
	_ = dingTalk.SendTextMessage(strings.Join(append([]string{title}, msgs...), "\n"))
}
